from redis import StrictRedis

class Config():
    REDIS_HOST = '127.0.0.1'
    REDIS_PORT = 6379

    DEBUG = None
    SESSION_TYPE='redis'
    SESSION_REDIS = StrictRedis(host= REDIS_HOST,port=REDIS_PORT)
    SESSION_USE_SINGER= True
    PERMANAENT_SESSION_LIVETIME =86400
    SECRET_KEY = 'sa830ieusdf=as-d13rsdfhnapsad&323-$32je'
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/dbihome'
    SQLALCHEMY_TRACK_MODIFICATIONS = False

class DevelopmentConfig(Config):
    DEBUG=True

class ProductionConfig(Config):
    DEBUG = False

dict_config = {
    'development':DevelopmentConfig,
    'production':ProductionConfig
}